
import 'package:logmanager/bean/user_bean.dart';

/// assistants : "aa"
/// token : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6ODAwMFwvYXBpXC9tZWRcL2F1dGhcL2xvZ2luIiwiaWF0IjoxNzEzMzIwMTY2LCJleHAiOjE3MTM0MDY1NjYsIm5iZiI6MTcxMzMyMDE2NiwianRpIjoialZEelVWTU1JaUdZbUhxayIsInN1YiI6MSwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyIsInJvbGUiOiJtZWRfdXNlciIsInZlcnNpb24iOjF9.w78OFkaYPxF-AZ71WBKtHOydtQ-GfXpVKSS1__XTM5A"

class LoginBean {
  LoginBean({
    UserBean? assistants,
    String? token,
  }) {
    _assistants = assistants;
    _token = token;
  }

  LoginBean.fromJson(dynamic json) {
    _assistants = UserBean.fromJson(json['assistants']);
    _token = json['token'];
  }

  dynamic _assistants;
  String? _token;

  LoginBean copyWith({
    dynamic assistants,
    String? token,
  }) =>
      LoginBean(
        assistants: assistants ?? _assistants,
        token: token ?? _token,
      );

  UserBean? get assistants => _assistants;

  String? get token => _token;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['assistants'] = _assistants;
    map['token'] = _token;
    return map;
  }
}
